%!TEX root = ./HDG_report.tex
\section{Results}\label{results}

Through doing various runs of our demo game, some obvious issues present themselves. First off, even though our game has a ruleset designed to spawn various strategies and interesting gameplay situations, our very simple enemy AI does not do it justice at all. Therefore, the intended strategic selection of sound does not occur so often, as it is rarely necessary. 
Another issue that presents itself is how many of the weapons end up performing very similar in-game. The most prominent parameter is the trajectory, and since it is solely rotation-based, the weapons usually spread out in some manner. Some more interesting weapons emerge, for instance one type that spread and close again, as they are capable of wrapping the opponent in bullets (Figure \ref{wrapper}).
\begin{figure}[htp]
	\centerline{\includegraphics[width=0.9\columnwidth]{images/retract.png}}
	\caption{The player ship is firing a wrapping weapon}
	\label{wrapper}
\end{figure}
As for the actual sound generation, we found that it works very well even with our very simple envelope generating algorithm. While not always guaranteed interesting audible results, one can usually perceive some degree of resemblance to weapon sounds in other similar games. It becomes a bit more tricky however, when trying to perceive each parameter of the audio individually, and determining what parts of the weapon behavior they relate to. Consider the sound file \emph{everything\_high\_grainrate.wav} (see figure \ref{everythinghighgrainrate} for a spectrogram), where the grain rate is at approximately 71 Hz and every parameter moves from minimum to maximum. One can clearly perceive a change in the timbre, but dissecting it into three parameters moving is close to impossible.
\begin{figure}[htp]
	\centerline{\includegraphics[width=0.9\columnwidth]{images/everything_high_grainrate_spectro.png}}
	\caption{The spectrogram of the audio file \emph{everything\_high\_grainrate.wav}}
	\label{everythinghighgrainrate}
\end{figure}


  

